﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Imgur.Net.Auth
{
    public class AnonymousAuthenticationProvider : ImgurAuthProvider
    {
        /// <summary>
        /// Creates an instance of this class.
        /// </summary>
        /// <param name="clientId"></param>
        public AnonymousAuthenticationProvider(string clientId)
        {
            if (string.IsNullOrEmpty(clientId))
                throw new ArgumentNullException("clientId");

            ClientId = clientId;
        }

        /// <summary>
        /// Current Client ID.
        /// </summary>
        public string ClientId { get; private set; }


        public ImgurAuthContext GetAuthorizationContext()
        {
            return new AnonymousAuthContext(ClientId);
        }
    }
}
